package com.gulimall.product.fallback;

import com.gulimall.common.exception.BizCodeEnum;
import com.gulimall.common.utils.R;
import com.gulimall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * @author kkk
 * @date 2022/8/13
 */
@Component
public class SeckillFeignFallback implements SeckillFeignService {
    @Override
    public R getSeckillBySkuId(Long skuId) {

        return R.error(BizCodeEnum.UNKNOWN_EXCEPTION.getCode(),BizCodeEnum.UNKNOWN_EXCEPTION.getMsg());
    }
}
